<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Cache-Control" content="max-age=300" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${query} - 商品搜索 - 京淘</title>
<meta name="Keywords" content="java,京淘java" />
<meta name="description" content="在京淘中找到了29910件java的类似商品，其中包含了“图书”，“电子书”，“教育音像”，“骑行运动”等类型的java的商品。" />
<link rel="stylesheet" type="text/css" href="/css/base.css" media="all" />
<link rel="stylesheet" type="text/css" href="/css/psearch20131008.css" media="all" />
<link rel="stylesheet" type="text/css" href="/css/psearch.onebox.css" media="all" />
<link rel="stylesheet" type="text/css" href="/css/pop_compare.css" media="all" />
<link rel="stylesheet" href="/layui/css/layui.css"  media="all">
<script type="text/javascript" src="/js/jquery-1.2.6.min.js"></script>
</head>
<body>
<script type="text/javascript" src="/js/base-2011.js" charset="utf-8"></script>
<!-- header start -->
<jsp:include page="../commons/header.jsp" />
<!-- header end -->
<div class="w main">
	<div class="crumb">全部结果&nbsp;&gt;&nbsp;<strong>"${query}"</strong></div>
<div class="clr"></div>


<div class="m psearch " id="plist">
<ul class="list-h clearfix" tpl="2">
<c:forEach items="${itemList}" var="item">
<li class="item-book" bookid="11078102">
	<div class="p-img">
		<a target="_blank" href="http://www.jt.com/items/${item.id }.html">
			<img width="160" height="160" data-img="1" data-lazyload="${item.images[0]}" />
		</a>
	</div>
	<div class="p-name">
		<a target="_blank" href="http://www.jt.com/items/${item.id }.html">
			${item.title}
		</a>
	</div>
	<div class="p-price">
		<i>京淘价：</i>
		<strong>￥<fmt:formatNumber groupingUsed="false" maxFractionDigits="2" minFractionDigits="2" value="${item.price / 100 }"/></strong>
	</div>
	<div class="service">由 京淘 发货</div>
	<div class="extra">
		<span class="star"><span class="star-white"><span class="star-yellow h5">&nbsp;</span></span></span>
	</div>
</li>
</c:forEach>
</ul></div>
	<br/>

	<div class="m clearfix" id="bottom_pager">
		<div  id="pagin-btm" class="pagin fr" clstag="search|keycount|search|pre-page2">
			<div id="page"></div>
		</div>
	</div>
</div>
<!-- footer start -->
<jsp:include page="../commons/footer.jsp" />
<!-- footer end -->
<script type="text/javascript" src="/js/jquery.hashchange.js"></script>
<script type="text/javascript" src="/js/search_main.js"></script>
<script src="/layui/layui.js"></script>
<script type="text/javascript">
layui.use(['laypage','jquery'], function(){
	var laypage = layui.laypage,
			$ = layui.jquery
	//分页功能
	var currPage = "${page}"; //当前页
	var recordCount ="${recordCount}"; //总记录数
	var q = "${query}";
	var limit = "${rows}";
	var isItemCat = "${isItemCat}";
	laypage.render({
		elem: 'page'
		,theme: '#1E9FFF'
		,count: recordCount
		,limit: limit
		,limits: [20,30,40,50,60]
		,layout: ['count',,'prev', 'page', 'next', 'limit','refresh', 'skip']
		,curr: currPage
		,jump: function(obj,first){
			if (!first){
				if(isItemCat==""){

					window.location.href="/search?q="+q+"&page="+obj.curr+"&rows="+obj.limit;
				}else{
					window.location.href="/products/"+isItemCat+"?page="+obj.curr+"&rows="+obj.limit;
				}
			}
		}
	});
});

</script>
</body>
</html>